home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / smailsrc.zip / CHANGES next >
Text File  |  1990-05-25  |  2KB  |  79 lines

  1.              Changes in version 1.0b3 of smail/PC
  2.                    Stephen C. Trier
  3.  
  4.      There is only one tiny change between version 1.0b2 and 1.0b3, but it
  5. fixes a big bug.  This bug had to do with the LOCALNAME macro in uux.c,
  6. which did not always generate filenames that were compatible with uuio!
  7. This bug meant that smail/PC could not communicate with any hosts with
  8. hostnames less than six characters long, and worse, that it could not
  9. communicate with _any_ hosts if the local system name was less than six
  10. characters.
  11.  
  12.      Rather than suggest a mass renaming of the UUCP systems of the world,
  13. I changed the LOCALNAME macro to generate a compatible name.
  14.  
  15.      The source files affected are defs.h and uux.c.  The executables
  16. affected are uux.exe and smail.exe.
  17.  
  18.      Below is the context diff of the changes made to create version 1.0b3:
  19.  
  20.  
  21. *** old\defs.h
  22. --- defs.h
  23. **************
  24. *** 27,33
  25.   */
  26.   
  27.   #ifndef VERSION
  28. ! #define VERSION "smail2.5/PC/1.0b2"
  29.   #endif
  30.   
  31.   #ifdef __TURBOC__               /* Autodetect MS-DOS from Turbo C */
  32. --- 27,33 -----
  33.   */
  34.   
  35.   #ifndef VERSION
  36. ! #define VERSION "smail2.5/PC/1.0b3"
  37.   #endif
  38.   
  39.   #ifdef __TURBOC__               /* Autodetect MS-DOS from Turbo C */
  40. *** old\uux.c
  41. --- uux.c
  42. **************
  43. *** 9,14
  44.    *      to change the file owner from uucp to news.
  45.    *
  46.    *      This program is in the public domain.
  47.    */
  48.   
  49.   #include <stdio.h>
  50. --- 9,19 -----
  51.    *      to change the file owner from uucp to news.
  52.    *
  53.    *      This program is in the public domain.
  54. +  *
  55. +  *      Patch 1 written 5/23/90 by Stephen Trier: Change the definition
  56. +  *          of localname to avoid short host name bug.  This way, both
  57. +  *          uuio and uux will use the same filenames.
  58. +  *
  59.    */
  60.   
  61.   #include <stdio.h>
  62. **************
  63. *** 137,143
  64.   }
  65.   
  66.   /* Templates for filenames.  P=path, C=character, S=system, N=seq. number */
  67. ! #define LOCALNAME(P,C,S,N)   "%s/%c_%s.%03.3d",P,C,S,N
  68.   #define REMOTENAME(C,S,N)  "%c.%.7s%04d",C,S,N
  69.   
  70.   void make_filenames(void)
  71. --- 142,148 -----
  72.   }
  73.   
  74.   /* Templates for filenames.  P=path, C=character, S=system, N=seq. number */
  75. ! #define LOCALNAME(P,C,S,N)   "%s/%c_%s%04.4d.%03.3d",P,C,S,N,N
  76.   #define REMOTENAME(C,S,N)  "%c.%.7s%04d",C,S,N
  77.   
  78.   void make_filenames(void)
  79.